package com.mosai.alignpro.util;

import android.util.Log;

import com.mosai.alignpro.BuildConfig;

/**
 * Created by Rays on 2020/3/16.
 */
public final class LogUtils {

    private static final boolean IS_PRINT = BuildConfig.DEBUG;

    public static void d(String tag, String message) {
        if (IS_PRINT) {
            Log.d(tag, message);
        }
    }

    public static void i(String tag, String message) {
        if (IS_PRINT) {
            Log.i(tag, message);
        }
    }

    public static void w(String tag, String message) {
        if (IS_PRINT) {
            Log.w(tag, message);
        }
    }

    public static void e(String tag, String message) {
        if (IS_PRINT) {
            Log.e(tag, message);
        }
    }

    public static void e(String tag, String message, Throwable tr) {
        if (IS_PRINT) {
            Log.e(tag, message, tr);
        }
    }
}
